package cn.wizzer.app.user.modules.services;

import cn.wizzer.app.user.modules.models.UserChatMsg;
import cn.wizzer.app.user.modules.models.enums.MsgStatusEnum;
import cn.wizzer.app.user.modules.models.enums.MsgTypeEnum;
import cn.wizzer.framework.base.service.BaseService;
import cn.wizzer.framework.page.Pagination;

import java.util.List;

public interface UserChatMsgService extends BaseService<UserChatMsg> {
    Pagination listPage(int pageNumber, int pageSize, String sender, String receiver, String[] searchDate, MsgTypeEnum type, MsgStatusEnum status);

    List<String> findRecentChatUser(String userId);

    Pagination listPage(int pageNumber, int pageSize, String userId);

    void delMsgJob();

    /**
     * 查询客服未读消息数量
     *
     * @param appid 用户id
     * @return
     */
    String attendantUnreadNum(String appid);
}
